import React, { Component } from 'react'
import Son from './Son'

export default class Father extends Component {
    state = {
        num: 888
    }
    render() {
        const { num } = this.state
        return (
            <div>
                <h3>
                    我是父组件 --- { num }
                </h3>
                <Son num = { num }/>
            </div>
        )
    }
}
